<div class="user-r-title clearfix">
    <div class="common-title f-l">
        <a href="javascript:void(0)" class="field">{$data.page_title}</a>
    </div>
    <a href='{url r="user_two#create_promoter"}' class="btn btn-primary btn-m f-r" id="btn_upload" style="position: relative; z-index: 1;">新增{$bm_two}</a>
</div>
<div class="user-r-content clearfix j-ajax-page">
    {if $data.bm_promoter_type eq 1}
    <span>{$data.errors}</span>
    {else}
    <div class="search clearfix" ms-important="vm-search">
        <div class="search-list">
            <span>时间</span>
            <input type="text" ms-duplex="@search_data.begin_time" id="begin_time" placeholder="{$data.begin_time}"> <span>-</span> <input type="text" ms-duplex="@search_data.end_time" id="end_time" placeholder="{$data.end_time}">
        </div>
        <div class="search-list">
            <span>机构编号</span>
            <input type="text" ms-duplex="@search_data.login_name" placeholder="">
        </div>
        <a href="javascript:void(0)" class="btn btn-primary btn-circle" ms-click="search">搜索</a>
    </div>
    <div class="ajax-block">
        <table class="uc-table">
            <tr style="border-bottom:none">
                <td colspan=6 style="text-align:left;padding-left:15px;">汇总：{if $data.bm_promoter_type eq 3}<span style="padding-right:10px;">{$bm_one}：{$data.promoter_one_count} 人</span>{/if}<span style="padding-right:10px;">{$bm_two}：{$data.promoter_two_count} 人</span></td>
            </tr>
        </table>
        <table class="uc-table">
            <thead>
                <tr>
                    <th>机构编号</th>
                    <th>机构名称</th>
                    <th>所属上级编号</th>
                    <th>所属上级机构名称</th>
                    <th>账户状态</th>
                    <th>创建时间</th>
                </tr>
            </thead>
            <tbody>
                {foreach from="$data.promoter_list" item="l_item" }
                <tr>
                    <td>{$l_item.login_name}</td>
                    <td>{$l_item.name}</td>
                    <td>{$l_item.p_login_name}</td>
                    <td>{$l_item.p_name}</td>
                    <td>{if $l_item.is_effect eq 1}正常{else}销户{/if}</td>
                    <td>{function name=to_date v=$l_item.create_time}</td>
                </tr>
                {foreachelse}
                <tr>
                    <td colspan=6>
                        <span>暂无数据</span>
                    </td> 
                </tr>
                {/foreach}
            </tbody>
        </table>
        <div class="m-page clearfix">
            <div class="m-page-con">
                {$data.page}
            </div>
        </div>
    </div>
    {/if}
</div>
